package com.sky.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.sky.entity.SetmealDish;
import com.sky.mapper.SetmealDishMapper;
import com.sky.service.ISetmealDishService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 套餐菜品关系 服务实现类
 * </p>
 *
 * @author fcy
 * @since 2025-09-08
 */
@Service
public class SetmealDishServiceImpl extends ServiceImpl<SetmealDishMapper, SetmealDish> implements ISetmealDishService {
    /**
     * 获取套餐菜品关系
     * @param id
     * @return
     */
    @Override
    public List<SetmealDish> getList(Integer id) {
        List<SetmealDish> list = lambdaQuery()
                .eq(SetmealDish::getSetmealId, id)
                .list();
        return list;

    }
}
